package com.wsx.java.boddy.agent;

/**
 * @author wangshuaixin
 * @Title: com.wsx.java.boddy.agent.TestAgent
 * @Description: TODO
 * @date 2019/01/23
 */
public class TestAgent {


    public void fun1() throws Exception {
        System.out.println("fun1 is running");
        Thread.sleep(100);
    }

    public void fun2() throws Exception {
        System.out.println("fun2 is running");
        Thread.sleep(100);
    }

    //-javaagent:/Users/wangshuaixin/work/ideaspace/java-byte/agent-byte/target/agent-my.jar

    public static void main(String[] args) throws Exception {
        TestAgent testAgent = new TestAgent();
        testAgent.fun1();
        testAgent.fun2();
    }
}
